xen: event channel remapping for emulated MSIs
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 3 Jul 2012 12:39:01 +0000 (13:39 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 3 Jul 2012 12:39:01 +0000 (13:39 +0100)
commit88fccdd11ca0c2df915d7d56ab78ea70d4b60e52
tree8971d3b722ab6e62915aea2b9465080f6c64952f
parent97d39c5fbf23ea2c798b814893ffd2b0239ba44b
xen: event channel remapping for emulated MSIs

Linux PV on HVM guests remap all the MSIs onto event channels,
including MSIs corresponding to QEMU's emulated devices.  This patch
makes sure that we handle correctly the case of emulated MSI that have
been remapped, sending a pirq to the guest instead.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Tested-by: Deep Debroy <ddebroy@gmail.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/irq.c
xen/include/asm-x86/irq.h